package cn.yunhe.service;

import cn.yunhe.dao.HouseDao;
import cn.yunhe.entity.House;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class NewsService {
    @Resource
    private HouseDao houseDao;
    public List<House> getAllList(){
        return  houseDao.getAllList();
    }

    public HouseDao getHouseDao() {
        return houseDao;
    }

    public void setHouseDao(HouseDao houseDao) {
        this.houseDao = houseDao;
    }
}
